package com.ruoyi.admin.model.request;

import com.ruoyi.common.xss.Xss;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class StudentReq {

    private Long studentId;

    //学生姓名
    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "用户账号不能为空")
    @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符")
    private String studentName;
    //用户性别（0女 1男 2未知）
    private Integer sex;
    //头像地址
    private String avatar;
    //手机号码
    private String phonenumber;
    //用户邮箱
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    private String email;
    //密码
    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "密码不能为空")
    @Size(min = 0, max = 30, message = "密码长度不能超过50个字符")
    private String password;
    //学生级别
    private String studentLevel;

    @NotNull(message = "老师Id不能为空")
    private Long teacherId;

}
